<template>
	<view class="flex-col page">
		<!-- <view style="margin-top: 120rpx;"></view> -->
		<view class="flex-col group" v-if="article.length>0">
			<text class="text_1">
				<u-parse :content="article"></u-parse>
			</text>
		</view>
		<view v-else>
			<u-empty mode="data" width="150" heigth="200" marginTop="50%"
				icon="http://cdn.uviewui.com/uview/empty/data.png">
			</u-empty>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				article: '',
				identification: '',
				articleTitle: ''
			}
		},
		onLoad(option) {
		
			this.identification = option.identification
			this.getArticle()
		

		},
		onLaunch() {
			this.getIdentification();
		},
		methods: {
			getArticle() {
				// 获取文章列表
				this.$http('privacy.article', {
					identification: this.identification
				}).then(res => {
					console.log(res);
					const {data} = res
					this.article = data.articleContent
					uni.setNavigationBarTitle({
						title: data.articleTypeName
					});
				})
			},
			// getIdentification(identification) {
			// 	this.$http('identification', {
			// 		identification: this.identification,
			// 	}).then(r => {
			// 		if (r.code == 200) {
			// 			this.article = r.data.articleContent;
			// 			this.articleTitle = r.data.articleTitle;
			// 			uni.setNavigationBarTitle({
			// 				title: this.articleTitle
			// 			});

			// 		}
			// 	})
			// }
		},
	};
</script>

<style scoped lang="css">
	.page {
		background-color: #ffffffff;
		width: 100%;
		overflow-y: auto;
		/* overflow-x: hidden; */
		height: 100%;
	}

	.back-w {
		display: flex;
		flex-direction: row;
		padding-top: 50rpx;
		width: 100vw;
		height: 120rpx;
		background-color: #ffffff;
		position: fixed;
	}

	.f-w-l {
		display: flex;
		flex-direction: row;
		font-weight: bold;
		margin-left: 33%;
	}


	.group {
		padding: 32rpx 32rpx 368rpx;
		flex: 1 1 auto;
		overflow-y: auto;
	}

	.text_1 {
		color: #191919;
		font-size: 32rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 38rpx;
		text-align: left;
	}

	.text_2 {
		margin-top: 46rpx;
		color: #333333;
		font-size: 28rpx;
		font-family: '.AppleSystemUIFont';
		line-height: 33rpx;
		text-align: left;
		text-indent: 37rpx;
	}
</style>
